package com.project.erp.service;

import javax.servlet.ServletContext;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.springframework.web.context.ServletContextAware;

import com.project.erp.service.global.GlobalResourceService;

/**
 * 
 * COPYRIGHT (C) 2013 BY XXX公司

 *  功能模块名：系统启动时加载各种参数 

 *  功能描述：

 * @author LiJiaGuo    

 * @version 1.0  

 * @created 2013-11-13 下午10:33:37
 */
@Component
public class GlobalResourceInitializer implements ServletContextAware {
	
	@Autowired
	private GlobalResourceService globalResourceService;
	
	@Override
	public void setServletContext(ServletContext servletContext) {

		/**
		 * 加载系统参数
		 */
		globalResourceService.loadParameter(servletContext);
	}
}
